package pers.zb.cloud.service.upms.entity;


import lombok.Data;
import pers.zb.cloud.service.upms.enums.RoleStatus;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 角色
 */
@Data
@Table(name = "sys_role")
public class SysRole {
	@Id
	@Column(name = "id")
	private Long id; //主键ID

	@Column(name = "name")
	private String name;//角色名称

	@Column(name = "status")
	private RoleStatus status;//角色状态

	@Column(name = "description")
	private String description;//描述

	@Column(name = "create_time")
	private Date createTime; //创建时间

	@Column(name = "update_time")
	private Date updateTime; //最后更新时间
}
